﻿ /**
 * 子模块路由
 * Lc
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //待办列表
    .state('app.tpeventList', {
        url: "/tpeventList",
        views: {
            'main@' : {
                template : require('./views/eventList.html'),
                controller : 'tpeventList',
            }
        },
        resolve:{
            
        }
    })
    //完善企业信息
    .state('app.tpcompleteInfo', {
        url: "/tpcompleteInfo",
        views: {
            'main@' : {
                template : require('./views/completeInfo.html'),
                controller : 'tpcompleteInfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }
        }
    })
    
    .state('app.tpviewPeople', {
        url: "/tpviewPeople",
        views: {
            'main@' : {
                template : require('./views/viewPeople.html'),
                controller : 'tpviewPeople',
            }
        },
        resolve:{

        }
    })   
    .state('app.tpviewnotice', {
        url: "/tpviewnotice?type",
        views: {
            'main@' : {
                template : require('./views/viewnotice.html'),
                controller : 'tpviewnotice',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.tpviewnoticelook', {
        url: "/tpviewnoticelook",
        views: {
            'main@' : {
                template : require('./views/viewnoticelook.html'),
                controller : 'tpviewnoticelook',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.tpcityApplyNoAudit', {
        url: "/tpcityApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyNoAudit.html'),
                controller : 'tpcityApplyNoAudit',
            }
        },
        resolve:{

        }
    })   
     .state('app.tpcityApplyYesAudit', {
        url: "/tpcityApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyYesAudit.html'),
                controller : 'tpcityApplyYesAudit',
            }
        },
        resolve:{

        }
    })
     .state('app.tpcityApplyThirdAudit', {
        url: "/tpcityApplyThirdAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyThirdAudit.html'),
                controller : 'tpcityApplyThirdAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.tpcityThirdApplyAuditInfo', {
        url: "/tpcityThirdApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyAuditInfo.html'),
                controller : 'tpcityThirdApplyAuditInfo',
            }
        },
        resolve:{

        }
    })
    .state('app.tpcityThirdApplyAuditInfoNo', {
        url: "/tpcityThirdApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyAuditInfoNo.html'),
                controller : 'tpcityThirdApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    })
    .state('app.tpcityThirdApplyNoAudit', {
        url: "/tpcityThirdApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyNoAudit.html'),
                controller : 'tpcityThirdApplyNoAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.tpcityThirdApplyYesAudit', {
        url: "/tpcityThirdApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyYesAudit.html'),
                controller : 'tpcityThirdApplyYesAudit',
            }
        },
        resolve:{

        }
    })


    .state('app.tpaddviewlidex', {
        url: "/tpaddviewlidex",
        views: {
            'main@' : {
                template : require('./views/addviewlidex.html'),
                controller : 'tpaddviewlidex',
            }
        },
        resolve:{

        }
    })
    .state('app.tpviewalevelindex', {
        url: "/tpviewalevelindex",
        views: {
            'main@' : {
                template : require('./views/viewalevelindex.html'),
                controller : 'tpviewalevelindex',
            }
        },
        resolve:{

        }
    })    
        .state('app.tpaddevaluatepeople', {
        url: "/tpaddevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/addevaluatepeople.html'),
                controller : 'tpaddevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.tpcountryApplyBase', {
        url: "/tpcountryApplyBase",
        views: {
            'main@' : {
                template : require('./views/countryApplyBase.html'),
                controller : 'tpcountryApplyBase',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.tpcountryApplyAuditInfo', {
        url: "/tpcountryApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/countryApplyAuditInfo.html'),
                controller : 'tpcountryApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tpcountryApplyAuditInfoNo', {
        url: "/tpcountryApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/countryApplyAuditInfoNo.html'),
                controller : 'tpcountryApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tpcountryApplyNoAudit', {
        url: "/tpcountryApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyNoAudit.html'),
                controller : 'tpcountryApplyNoAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tpcountryApplyYesAudit', {
        url: "/tpcountryApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyYesAudit.html'),
                controller : 'tpcountryApplyYesAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.tpcountryApplyAudit', {
        url: "/tpcountryApplyAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyAudit.html'),
                controller : 'tpcountryApplyAudit',
            }
        },
        resolve:{

        }
    }) 

  .state('app.tpcityApplyAuditInfoNo', {
        url: "/tpcityApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/cityApplyAuditInfoNo.html'),
                controller : 'tpcityApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.tpcityApplyAuditInfo', {
        url: "/tpcityApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/cityApplyAuditInfo.html'),
                controller : 'tpcityApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.tpcityApplyFirstAudit', {
        url: "/tpcityApplyFirstAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyFirstAudit.html'),
                controller : 'tpcityApplyFirstAudit',
            }
        },
        resolve:{

        }
    }) 

   .state('app.tpviewevaluatepeople', {
        url: "/tpviewevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/viewevaluatepeople.html'),
                controller : 'tpviewevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    //企业审核
   .state('app.tpreview_company', {
        url: "/tpreview_company",
        views: {
            'main@' : {
                template : require('./views/review_company.html'),
                controller : 'tpreview_company',
            }
        },
        resolve:{

        }
    })
    //待办列表
    .state('app.tpalevelIndexCategory', {
        url: "/tpalevelIndexCategory?type",
        views: {
            'main@' : {
                template : require('./views/alevelIndexCategory.html'),
                controller : 'tpalevelIndexCategory',
            }
        },
        resolve:{
            
        }
    })

    .state('app.tpaddCategory', {
        url: "/tpaddCategory",
        views: {
            'main@' : {
                template : require('./views/addCategory.html'),
                controller : 'tpaddCategory',
            }
        },
        resolve:{

        }
    })
    //待审核景区列表
    .state('app.tpunaudited_viewlist', {
        url: "/tpunaudited_viewlist",
        views: {
            'main@' : {
                template : require('./views/unaudited_viewlist.html'),
                controller : 'tpunaudited_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.tppassed_viewlist', {
        url: "/tppassed_viewlist",
        views: {
            'main@' : {
                template : require('./views/passed_viewlist.html'),
                controller : 'tppassed_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.tprejected_viewlist', {
        url: "/tprejected_viewlist",
        views: {
            'main@' : {
                template : require('./views/rejected_viewlist.html'),
                controller : 'tprejected_viewlist',
            }
        },
        resolve:{

        }
    })
    //景区项目列表
    .state('app.tpviewproject_list', {
        url: "/tpviewproject_list",
        views: {
            'main@' : {
                template : require('./views/viewproject_list.html'),
                controller : 'tpviewproject_list',
            }
        },
        resolve:{

        }
    })
    //评定员打分列表
    .state('app.tpmark_list', {
        url: "/tpmark_list",
        views: {
            'main@' : {
                template : require('./views/mark_list.html'),
                controller : 'tpmark_list',
            }
        },
        resolve:{

        }
    })
    
};

module.exports = router;